<template>

  <div class="info-wrapper flex-row-center">
    <div class="info bg">
      <div class="name"><i style="margin-right: 4px" :class="iconClass"></i>{{ info.name }}</div>
      <div class="value">{{ info.value }}</div>
    </div>
  </div>

</template>

<script>
export default {
  name: "info-card",

  props: {
    info: Object
  },
  computed: {
    iconClass: function() {
      return 'el-icon-' + this.info.icon
    }
  }
};
</script>

<style scoped>
.info {
  text-align: center;
  /*margin: 20px;*/
  padding: 10px 10px;
}

.name {
  font-size: 30px;
  font-weight: 600;
  line-height: 45px;
  letter-spacing: 0.02rem;
}

.value {
  font-size: 17px;
}
</style>